package com.voltmao.webpro.utils;


import java.util.Map;

/**
 * @author zya
 * 检查参数是否完整
 */
public class ParamsUtil {

    public static boolean checkNotNull(Map<String,Object> params, String[] checkArr) throws RuntimeException{
        for(int i=0,len=checkArr.length;i<len;i++){
            if(!StringUtils.isNotEmpty(params.get(checkArr[i]))){
                throw new RuntimeException("参数【"+checkArr[i]+"】不能为空");
            }
        }
        return true;
    }
}
